import java.util.Scanner;
public class YangHui {
    public static void main(String[] args) {
        Scanner x=new Scanner(System.in);
        int n=x.nextInt();
        for(int i=1;i<=n;i++){
            for(int j=1;j<=i;j++){
                if(j==1||j==i){
                    System.out.print(1);
                }
                else{
                    System.out.println();
                }
            }
        }
    }
}
